/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ntb.models;

import com.ntb.entities.LocationCostHistory;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.Iterator;

/**
 *
 * @author trungnm
 */
public interface LocationCostHistoryDAO {

    public Iterator<LocationCostHistory> getList();

    public Iterator<LocationCostHistory> getHistoryData(int locationID, int numRow, Timestamp fromDate, Timestamp toDate);

    public LocationCostHistory getRow(int locationID); // Last row

    public boolean checkDuplicate(int locationID, Timestamp startDate);

    public int add(LocationCostHistory object);

    public int update(LocationCostHistory object);

    public int delete(int locationID, Timestamp startDate);//    public int deleteIn(String arrayIds);
}
